package eddie;

public class Game {

    private String fileName, genre, path;

    public Game(String fileName, String genre, String path) {
        this.fileName = fileName;
        this.genre = genre;
        this.path = path;
        Main.addToArray(this);
        Visual.getInstance().addToModel(this);
        Visual.getInstance().addGenre(genre);
      
        //Main.writeFile(this, true);
    }

    public String getName() {
        return fileName.substring(0, fileName.length()-4);
    }
    
    public String getFileName(){
        return fileName;
    }
  
    public String getGenre() {
        return genre;
    }

    public String getPath() {
        return path;
    }
    
    @Override
    public String toString() {
      return fileName;
    }
}